package com.landtool.lanbase.utils;

import java.util.Properties;

/**
 * 配置文件读取，通过key获取值
 */
public class YmlConfigurerUtil {
    private static Properties ymlProperties = new Properties();

    public YmlConfigurerUtil(Properties properties){
        ymlProperties = properties;
    }

    public static String getStrYmlVal(String key){
        return ymlProperties.getProperty(key);
    }

    public static Integer getIntegerYmlVal(String key){
        return Integer.valueOf(ymlProperties.getProperty(key));
    }
}
